<table class="table table-bordered" style="margin-bottom:10px;">
    <thead>
    <tr>
        <td colspan="2" class="text-center"><strong>订 单 信 息</strong>（订单编号：{$orderInfo.order_sn} <span style="width: 18%">下单时间：{$orderInfo.create_time|date="Y-m-d H:i:s",###}</span>）</td>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td style="width: 18%">
            用 户 名：{$orderInfo.buyer_username}
        </td>
        <td style="width: 18%">
            订单状态：{$orderInfo.order_status_text} {$orderInfo.shipping_status_text} {$orderInfo.pay_status_text}
        </td>
    </tr>
    <tr>
        <td style="width: 18%">
            店铺:{$orderInfo.site_name}
        </td>
        <td style="width: 18%">
            付款方式：{$orderInfo.pay_name}
        </td>
    </tr>
    </tbody>
</table>
<table  class="table table-bordered" style="margin-bottom:10px;">
    <tbody>
    <tr>
        <td align="right" width="120" class="active">收货人姓名：</td>
        <td align="left">{$orderInfo.consignee}</td>
        <td align="right" width="120" class="active">收货人电话：</td>
        <td align="left">{$orderInfo.tel_phone}</td>
    </tr>
    <tr valign="top">
        <td align="right" width="120" class="active">收货人地址：</td>
        <td align="left">{$orderInfo.area_text} {$orderInfo.address}</td>
        <td align="right" width="120" class="active">邮政编码：</td>
        <td align="left">{$orderInfo.zip_code}</td>
    </tr>
    <tr valign="top">
        <td align="right" width="120" class="active">
            订单附言:
        </td>
        <td align="left" colspan="3">
            {$orderInfo.order_message}
        </td>
    </tr>
    </tbody>
</table>
<table class="table table-bordered" style="margin-bottom:10px;">
    <thead>
    <tr align="middle">
        <th align="left" colspan="9" class="text-center">费用信息</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>订单金额</td>
        <td>商品总价</td>
        <td>配送费</td>
        <td>代金券</td>
        <td>优惠金额</td>
        <td>实付款</td>
        <td>退款金额</td>
        <td>赠送积分</td>
        <td>消费积分</td>
    </tr>
    <tr>
        <td>{$orderInfo.order_price}元</td>
        <td>{$orderInfo.goods_amount}元</td>
        <td>{$orderInfo.shipping_fee|default=0}元</td>
        <td>{$orderInfo.card_price|default=0}元</td>
        <td>{$orderInfo.promotion_amount|default=0}元</td>
        <td>{$orderInfo.pay_price}元</td>
        <td>{$orderInfo.refund_amount}元</td>
        <td>{$orderInfo.order_give_point}积分</td>
        <td>{$orderInfo.order_pay_point}积分</td>
    </tr>
    {notempty name='orderInfo.voucher'}
    <tr>
        <td>支付凭证</td>
        <td colspan="8">
            <img src="{$orderInfo.voucher}" style="max-width:100%;" />
        </td>
    </tr>
    {/notempty}
    </tbody>
</table>
<table class="table table-bordered" style="margin-bottom:10px;">
    <thead>
    <tr align="middle">
        <th align="left" colspan="6" class="text-center">商品清单</th>
    </tr>
    </thead>
    <tbody>
    <tr align="middle">
        <td align="left" width="400">商 品 名 称</td>
        <td align="left" width="60">单位</td>
        <td align="left" width="60">数量</td>
        <td align="left" width="120">单价</td>
        <td align="left" width="120">小计</td>
        <td align="left" width="200">备注</td>
    </tr>
    {volist name="orderInfo.item_list" id="vo"}
    <tr align="middle">
        <td align="left" width="400">
            <img align="left" src="{$vo.goods_thumb|default='/public/nopic.gif'}" style="width:5em;height:4.75em;margin:4px;"/>
            {$vo.goods_name} {$vo.sku_name}
        </td>
        <td align="left">{$vo.goods_unit}</td>
        <td align="left">{$vo.goods_num}</td>
        <td align="left">
            {gt name="vo.unit_price" value="0"}
            {$vo.unit_price}元<br/>
            {/gt}
            {gt name="vo.pay_point" value="0"}
            {$vo.pay_point}积分
            {/gt}
        </td>
        <td align="left">
            {gt name="vo.pay_price" value="0"}
            {$vo.pay_price}元<br/>
            {/gt}
            {gt name="vo.pay_point" value="0"}
            {$vo['pay_point']*$vo['goods_num']}积分
            {/gt}
        </td>
        <td align="left">{$vo.promotion_type_text}</td>
    </tr>
    {/volist}
    <tr class="tdbg">
        <td align="left" colspan="4">
            商品总价:{$orderInfo.goods_amount}元
            {gt name="orderInfo.shipping_fee" value="0"}
            +配送费:{$orderInfo.shipping_fee|default=0}元
            {/gt}
            {gt name="orderInfo.card_price" value="0"}
            -代金券:{$orderInfo.card_price|default=0}元
            {/gt}
            {gt name="orderInfo.promotion_amount" value="0"}
            -优惠金额:{$orderInfo.promotion_amount|default=0}元
            {/gt}<br/>
            <span class="text-danger">=订单金额:{$orderInfo.order_price}元</span>
        </td>
        <td align="left" colspan="2">
            应付款：{$orderInfo.order_price}元
            {gt name="orderInfo.refund_amount" value="0"}
            -退款:{$orderInfo.refund_amount}元<br/>
            {/gt}<br/>
            <span class="text-danger">实付款：{$orderInfo['pay_price']-$orderInfo['refund_amount']}元</span>
        </td>
    </tr>
    </tbody>
</table>
{eq name="orderInfo.shipping_status" value="1"}
<div class="alert alert-warning">
    <p>该订单已发货，发货信息如下：</p>
    <p>发货日期：{$orderInfo.shipping_time|date='Y-m-d H:i:s',###}，物流公司：{$orderInfo.express_name}，物流单号：{$orderInfo.shipping_code}</p>
    <p>发货备注：{$orderInfo.deliver_explain}</p>
</div>
{/eq}
<table class="table table-bordered" style="margin-bottom:10px;">
    <thead>
    <tr align="middle">
        <th align="left" colspan="7" class="text-center">跟踪记录</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>处理时间</td>
        <td>处理信息</td>
        <td>处理人</td>
    </tr>
    {volist name="orderInfo.log_list" id="vo"}
    <tr>
        <td>{$vo.log_time|date="Y-m-d H:i:s",###}</td>
        <td>{$vo.log_msg}</td>
        <td>{$vo.action_name}</td>
    </tr>
    {/volist}
    </tbody>
</table>